<#ftl output_format="HTML" auto_esc=true> <@h.commonHead title="后台管理系统" keywords="开源,永久免费"
description="springrain开源系统管理后台"/>
</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<@h.naviHeader /> <@h.leftMenu />
		<!-- 主体内容开始 -->
			<script type="text/javascript">
				jQuery(document)
						.ready(
								function() {
									$(".layui-table tbody tr")
											.click(
													function() {
														$(
																".layui-table tbody tr.active")
																.removeClass(
																		"active");
														$(this).attr("class",
																"active");
														var _url = ctx
																+ "/system/auditlog/look/json?id="
																+ $(this).attr(
																		"id");

														jQuery
																.ajax({
																	url : _url,
																	type : "post",
																	dataType : "json",
																	success : function(
																			_json) {
																		if (_json.status == "success") {
																			showdata(_json);
																		}
																	}
																});
														return false;
													})
								});

				function showdata(result) {
					$("#updateForm select ").each(
							function() {
								$(this).find('option:first').attr('selected',
										'selected');
							});
					for ( var s in result.data) {
						set_val(s, result.data[s]);
					}
				}
			</script>
			<!-- 功能操作区域结束 -->
			<!-- 列表显示区域  -->
			<div class="layui-tab layui-tab-brief">
					<ul class="layui-tab-title site-demo-title">
			             <li class="layui-this">
			             		<i class="layui-icon">&#xe630;</i>
			             		<span class="layui-breadcrumb" style="visibility: visible;">
								  <a href="${ctx}">首页<span class="layui-box">&gt;</span></a>
								  <a href="">系统管理<span class="layui-box">&gt;</span></a>
								  <a><cite>修改日志</cite></a>
								</span>
			             </li>
		       		</ul>
		       		<div class="layui-body layui-tab-content site-demo-body">
						<div class="layui-tab-item layui-show">
							<div class="layui-main">
								<form class="layui-form layui-form-pane" method="post" action="${ctx}/system/auditlog/list" name="searchForm" id="searchForm">
									<input type="hidden" name="pageIndex" id="pageIndex" value="${(returnDatas.page.pageIndex)!'1'}" /> 
									<input type="hidden" name="sort" id="page_sort" value="${(returnDatas.page.sort)!'desc'}" /> 
									<input type="hidden" name="order" id="page_order" value="${(returnDatas.page.order)!'id'}" />
									<table class="layui-table">
										          	<tbody>
										          		<tr>
										          			<th>修改日志搜索</th>
										          		</tr>
										          		<tr>
										          			<td>
										          				<div class="layui-inline">
														    		<label class="layui-form-label">用户</label>
																    <div class="layui-input-inline">
																      	<input type="text" name="userCode" id="search_title" placeholder="用户" value="${(returnDatas.queryBean.userCode)!''}" class="layui-input">
																    </div>
															  	</div>
												                <div class="layui-inline">
															      	<button class="layui-btn" id="searchBtn" onclick="mySubmitForm('searchForm');">查询</button>
															  	</div>
										          			</td>
										          		</tr>
										          	</tbody>
								     </table>
								</form>
								<div class="container-fluid">
									<div class="row">
										<div class="per20 fl">
											<table class="layui-table">
											 	<colgroup>
										    		<col width="80">
											    	<col width="120">
										  		</colgroup>
										  		<thead>
													<tr>
														<th>用户</th>
														<th>时间</th>
													</tr>
												</thead>
												<tbody>
													<#if (returnDatas.data??)&&(returnDatas.data?size>0)> 
														<#list returnDatas.data as _data>
															<tr id="${(_data.id)!''}">
																<td>${(_data.operatorName)!''}</td>
																<td>${(_data.operationTime)!''}</td>
															</tr>
														</#list>
													</#if>
												</tbody>
											</table>
											<div id="laypageDiv"></div>
												<@h.layPage cont="laypageDiv" formId="searchForm" page=returnDatas.page/>
										</div>
										<div class="per60 fl rlt">
											<div class="fl per20 line-vertical"></div>
											<form id="updateForm" name="updateForm"	 class="layui-form">
												<div class="layui-form-item  col-lg-9">
										    		<label class="layui-form-label col-lg-3">用户*</label>
												    <div class="layui-input-inline">
												      	<input class="layui-input" type="text" id="operatorName" name="operatorName">
												    </div>
											  	</div>
												<div class="layui-form-item  col-lg-9">
										    		<label class="layui-form-label  col-lg-3">时间：</label>
												    <div class="layui-input-inline  col-lg-6">
												    	<input class="layui-input" type="text" id="operationTime" name="operationTime">
												    </div>
											  	</div>
												
												<div class="layui-form-item  col-lg-9">
												    <label class="layui-form-label col-lg-3">操作类型：</label>
												    <div class="layui-input-inline  col-lg-6">
												    	<input class="layui-input" type="text" id="operationType" name="operationType">
												    </div>
											  	</div>
												<div class="layui-form-item layui-form-text  col-lg-9">
												    <label class="layui-form-label col-lg-3">操作记录:</label>
												    <div class="layui-input-inline col-lg-6">
												     <input class="layui-input" type="text" id="operationClass" name="operationClass">
												    </div>
											  	</div>
											  	<div class="layui-form-item layui-form-text  col-lg-9">
												    <label class="layui-form-label col-lg-3">记录Id：</label>
												    <div class="layui-input-inline col-lg-6">
												    	 <input class="layui-input" type="text" id="operationClassId" name="operationClassId">
												    </div>
											  	</div>
											  	<div class="layui-form-item layui-form-text  col-lg-9">
												    <label class="layui-form-label col-lg-3">旧值:</label>
												    <div class="layui-input-inline col-lg-6">
												     	<textarea class="layui-textarea" name="preValue" id="preValue" rows="5" class="col-xs-12"></textarea>
												    </div>
											  	</div>
											  		<div class="layui-form-item layui-form-text  col-lg-9">
												    <label class="layui-form-label col-lg-3">新值:</label>
												    <div class="layui-input-inline col-lg-6">
												     	<textarea class="layui-textarea" name="curValue" id="curValue" rows="5" class="col-xs-12"></textarea>
												    </div>
											  	</div>
											 </form>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
		<!-- 主体内容结束 -->
		<@h.footer />
	</div>
</body>
</html>

